*************************************************
Lab 12 -13 -14 - Named Mode
*************************************************

------
R2
------

router eigrp ABC
 !
 address-family ipv4 unicast autonomous-system 111
  !
  af-interface default
   passive-interface
  exit-af-interface
  !
  af-interface Ethernet0/0
   summary-address 10.1.4.0 255.255.252.0
   summary-address 202.1.4.0 255.255.252.0
   authentication mode md5
   authentication key-chain BBB
   no passive-interface
  exit-af-interface
  !
  af-interface Ethernet0/1
   summary-address 10.1.4.0 255.255.252.0
   summary-address 202.1.4.0 255.255.252.0
   authentication mode md5
   authentication key-chain BBB
   no passive-interface
  exit-af-interface
  !       
  af-interface Ethernet0/2
   summary-address 10.1.4.0 255.255.252.0
   summary-address 202.1.4.0 255.255.252.0
   no passive-interface
  exit-af-interface
  !
  af-interface Ethernet0/3
   summary-address 10.1.4.0 255.255.252.0
   summary-address 202.1.4.0 255.255.252.0
   authentication mode hmac-sha-256 Cisco@111
   no passive-interface
  exit-af-interface
  !
  topology base
   variance 3
  exit-af-topology
  neighbor 192.1.12.1 Ethernet0/0
  neighbor 10.10.10.8 Ethernet0/3
  network 10.1.4.0 0.0.0.255
  network 10.1.5.0 0.0.0.255
  network 10.1.6.0 0.0.0.255
  network 10.1.7.0 0.0.0.255
  network 10.10.10.0 0.0.0.255
  network 192.1.12.0
  network 192.1.24.0
  network 192.1.25.0
  network 202.1.4.0
  network 202.1.5.0
  network 202.1.6.0
  network 202.1.7.0
 exit-address-family

------
R8
------

router eigrp MYEIGRP
 !
 address-family ipv4 unicast autonomous-system 111
  !
  af-interface default
   passive-interface
  exit-af-interface
  !
  af-interface Ethernet0/0
   summary-address 10.1.8.0 255.255.252.0
   authentication mode hmac-sha-256 Cisco@111
   no passive-interface
  exit-af-interface
  !
  topology base
  exit-af-topology
  neighbor 10.10.10.2 Ethernet0/0
  network 0.0.0.0
 exit-address-family

*********************************************
Lab 15 - Configuring a Multi-Domain Network
*********************************************

++++++++++++++++++++
Alias
++++++++++++++++++++

alias exec sir show ip route
alias exec sr sh run
alias exec srr sh run | s router
alias exec sirc sh ip route | inc C 
alias exec siib sh ip int brief

+++++++++++++++++
RIPv2
+++++++++++++++++

------
R1
------

router rip
 version 2
 no auto-summary
 network 192.1.18.0
 network 1.0.0.0

------
R8
------

router rip
 version 2
 no auto-summary
 network 192.1.18.0
 network 8.0.0.0
 network 10.0.0.0

+++++++++++++++++
EIGRP - 100
+++++++++++++++++

------
R1
------

router eigrp KBITS
 !
 address-family ipv4 unicast autonomous-system 100
  !
  topology base
  exit-af-topology
  network 192.1.12.0
  network 201.1.4.0
  network 201.1.5.0
  network 201.1.6.0
  network 201.1.7.0
 exit-address-family

------
R2
------

router eigrp KBITS
 !
 address-family ipv4 unicast autonomous-system 100
  !
  topology base
  exit-af-topology
  network 2.0.0.0
  network 192.1.12.0
  network 192.1.23.0
  network 202.1.4.0
  network 202.1.5.0
  network 202.1.6.0
  network 202.1.7.0

------
R3
------

router eigrp KBITS
 !
 address-family ipv4 unicast autonomous-system 100
  !
  topology base
  exit-af-topology
  network 192.1.23.0
  network 203.1.4.0
  network 203.1.5.0
  network 203.1.6.0
  network 203.1.7.0
 exit-address-family

+++++++++++++++++
EIGRP - 200
+++++++++++++++++

------
R3
------

router eigrp KBITS-2
 !
 address-family ipv4 unicast autonomous-system 200
  !
  topology base
  exit-af-topology
  network 3.0.0.0
  network 10.0.0.0
  network 192.1.34.0
 exit-address-family

------
R4
------

router eigrp KBITS
 !
 address-family ipv4 unicast autonomous-system 200
  !
  topology base
  exit-af-topology
  network 4.0.0.0
  network 192.1.34.0
  network 192.1.45.0
  network 192.1.46.0
  network 204.1.4.0
  network 204.1.5.0
  network 204.1.6.0
  network 204.1.7.0
 exit-address-family

------
R5
------

router eigrp KBITS
 !
 address-family ipv4 unicast autonomous-system 200
  !
  topology base
  exit-af-topology
  network 5.0.0.0
  network 192.1.45.0
  network 192.1.57.0
  network 205.1.4.0
  network 205.1.5.0
  network 205.1.6.0
  network 205.1.7.0
 exit-address-family

------
R6
------

router eigrp KBITS
 !
 address-family ipv4 unicast autonomous-system 200
  !
  topology base
  exit-af-topology
  network 6.0.0.0
  network 192.1.46.0
  network 206.1.4.0
  network 206.1.5.0
  network 206.1.6.0
  network 206.1.7.0
 exit-address-family

------
R7
------

router eigrp KBITS
 !
 address-family ipv4 unicast autonomous-system 200
  !
  topology base
  exit-af-topology
  network 7.0.0.0
  network 192.1.57.0
  network 207.1.4.0
  network 207.1.5.0
  network 207.1.6.0
  network 207.1.7.0
 exit-address-family

+++++++++++++++++
Static Routes
+++++++++++++++++

------
R4
------

ip route 9.0.0.0 255.0.0.0 192.1.49.9
ip route 10.1.96.0 255.255.255.0 192.1.49.9
ip route 10.1.97.0 255.255.255.0 192.1.49.9
ip route 10.1.98.0 255.255.255.0 192.1.49.9
ip route 10.1.99.0 255.255.255.0 192.1.49.9

------
R9
------

ip route 0.0.0.0 0.0.0.0 192.1.49.4

+++++++++++++++++
OSPF - Domain 1
+++++++++++++++++

------
R5
------

router ospf 1
 router-id 0.0.0.5
 network 192.1.50.0 0.0.0.255 area 0
 network 10.1.56.0 0.0.0.255 area 0
 network 10.1.57.0 0.0.0.255 area 0
 network 10.1.58.0 0.0.0.255 area 0
 network 10.1.59.0 0.0.0.255 area 0

------
R10
------

router ospf 1
 router-id 0.0.0.10
 network 192.1.50.0 0.0.0.255 area 0
 network 101.1.100.0 0.0.0.255 area 0
 network 101.1.101.0 0.0.0.255 area 0
 network 101.1.102.0 0.0.0.255 area 0
 network 101.1.103.0 0.0.0.255 area 0

+++++++++++++++++
OSPF - Domain 2
+++++++++++++++++

------
R6
------

router ospf 1
 router-id 0.0.0.6
 network 192.1.61.0 0.0.0.255 area 0
 network 10.1.60.0 0.0.0.255 area 0
 network 10.1.61.0 0.0.0.255 area 0
 network 10.1.62.0 0.0.0.255 area 0
 network 10.1.63.0 0.0.0.255 area 0

------
R7
------

router ospf 1
 router-id 0.0.0.7
 network 192.1.71.0 0.0.0.255 area 0
 network 10.1.72.0 0.0.0.255 area 0
 network 10.1.73.0 0.0.0.255 area 0
 network 10.1.74.0 0.0.0.255 area 0
 network 10.1.75.0 0.0.0.255 area 0

------
R11
------

router ospf 1
 router-id 0.0.0.11
 network 192.1.61.0 0.0.0.255 area 0
 network 192.1.113.0 0.0.0.255 area 0
 network 11.0.0.0 0.255.255.255 area 0
 network 10.1.112.0 0.0.0.255 area 0
 network 10.1.113.0 0.0.0.255 area 0
 network 10.1.114.0 0.0.0.255 area 0
 network 10.1.115.0 0.0.0.255 area 0

------
R12
------

router ospf 1
 router-id 0.0.0.12
 network 192.1.71.0 0.0.0.255 area 0
 network 192.1.123.0 0.0.0.255 area 0
 network 12.0.0.0 0.255.255.255 area 0
 network 10.1.120.0 0.0.0.255 area 0
 network 10.1.121.0 0.0.0.255 area 0
 network 10.1.122.0 0.0.0.255 area 0
 network 10.1.123.0 0.0.0.255 area 0

------
R13
------

router ospf 1
 router-id 0.0.0.13
 network 192.1.113.0 0.0.0.255 area 0
 network 192.1.123.0 0.0.0.255 area 0
 network 13.0.0.0 0.255.255.255 area 0
 network 10.1.132.0 0.0.0.255 area 0
 network 10.1.133.0 0.0.0.255 area 0
 network 10.1.134.0 0.0.0.255 area 0
 network 10.1.135.0 0.0.0.255 area 0

***************************************************
Lab 16 - Redistributing Connected & Static Routes
***************************************************

-----
R4
-----

route-map RC
 match interface E 0/3
!
router eigrp KBITS
 !
 address-family ipv4 unicast autonomous-system 200
  !
  topology base
   redistribute static
   redistribute connected route-map RC

*********************************************
Lab 17 - Redistributing between RIP & EIGRP
*********************************************

++++++++++++
Into RIP
++++++++++++

------
R1
------

router rip
 redistribute eigrp 100 metric 1

OR

router rip
 default-metric 1
 redistribute eigrp 100

++++++++++++
Into EIGRP
++++++++++++

-------
R1
-------

router eigrp KBITS
 address-family ipv4 unicast autonomous-system 100
  topology base
   redistribute rip metric 10 10 10 10 10

OR

router eigrp KBITS
 address-family ipv4 unicast autonomous-system 100
  topology base
   default-metric 10 10 10 10 10
   redistribute rip 

************************************************************
Lab 18 - Redistributing between 2 EIGRP Autonomous Systems
************************************************************

-------
R3
-------

router eigrp KBITS
 !
 address-family ipv4 unicast autonomous-system 100
  !
  topology base
   redistribute eigrp 200

router eigrp KBITS-2
 !
 address-family ipv4 unicast autonomous-system 200
  !
  topology base
   redistribute eigrp 100

************************************************************
Lab 19 - Redistributing between OSPF Domain 1 & EIGRP
************************************************************

-------
R5
-------

router eigrp KBITS
 !
 address-family ipv4 unicast autonomous-system 200
  !
  topology base
   redistribute ospf 1 metric 10 10 10 10 10
!
router ospf 1
 redistribute eigp 200

************************************************************
Lab 20 - Redistributing with Route Filtering
************************************************************

Requirement: Networks 202.1.4.0/24 & 202.1.5.0/24 should not be redistributed into EIGRP 200

----
R3
----

access-list 1 deny 202.1.4.0 0.0.0.255
access-list 1 deny 202.1.5.0 0.0.0.255
access-list 1 permit any
!
route-map E2E
 match ip address 1
!
router eigrp KBITS-2
 !
 address-family ipv4 unicast autonomous-system 200
  !
  topology base
   redistribute eigrp 100 route-map E2E

************************************************************
Lab 21 - Redistributing with Route Tagging
************************************************************

Requirement: RIPv2 & OSPF domain routes should not propagate to each other. Accomplish this task without using an ACL or a Prefix-list. Make sure that no future configuration is required if new routes are added to RIP or OSPF domains.


#1 - Block RIP Routes from propagating into the OSPF Domain 1
----------------------------------------------------------------

-----
R1
-----

route-map R2E
 set tag 22
!
router eigrp KBITS
 !
 address-family ipv4 unicast autonomous-system 100
  !
  topology base
   redistribute rip metric 10 10 10 10 10 route-map R2E

----
R5
----

route-map E2O deny 10
 match tag 22
route-map E2O permit 20
!
router ospf 1
 redistribute eigrp 200 route-map E2O

#2 - Block OSPF Domain 1 Routes from propagating into the RIP Domain
---------------------------------------------------------------------

-----
R5
-----

route-map O2E
 set tag 55
!
router eigrp KBITS
 !
 address-family ipv4 unicast autonomous-system 200
  !
  topology base
   redistribute ospf 1 metric 10 10 10 10 10 route-map O2E

----
R1
----

route-map E2R deny 10
 match tag 55
route-map E2R permit 20
!
router rip
 redistribute eigrp 100 metric 1 route-map E2R

************************************************************
Lab 22 - Multi-Point Redistribution with Route Tagging
************************************************************

-----
R6
-----

route-map E2O deny 5
 match tag 444
route-map E2O permit 10
 set tag 111
!
route-map O2E deny 5
 match tag 222
route-map O2E permit 10
 set tag 333
!
router ospf 1
 redistribute eigrp 200 route-map E2O
!
router eigrp KBITS
 address-family ipv4 unicast autonomous-system 200
  topology base
   redistribute ospf 1 metric 10 10 10 10 10 route-map O2E

-----
R7
-----

route-map O2E deny 5
 match tag 111
route-map O2E permit 10
 set tag 444
!
route-map E2O deny 5
 match tag 333
route-map E2O permit 10
 set tag 222
!
router ospf 1
 redistribute eigrp 200 route-map E2O
!
router eigrp KBITS
 address-family ipv4 unicast autonomous-system 200
  topology base
   redistribute ospf 1 metric 10 10 10 10 10 route-map O2E

************************************************************
Lab 23 - Configuing BFD for EIGRP
************************************************************

-----
R4
-----

Interface E 0/1
  bfd interval 300 min_rx 300 multiplier 3
!
Interface E 0/2
  bfd interval 300 min_rx 300 multiplier 3
!
router eigrp 200
 bfd all-interfaces

-----
R5
-----

Interface E 0/0
  bfd interval 300 min_rx 300 multiplier 3
!
router eigrp 200
 bfd all-interfaces

-----
R6
-----

Interface E 0/0
  bfd interval 300 min_rx 300 multiplier 3
!
router eigrp 200
 bfd all-interfaces

